package com.lai.qq.route.gateway.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "gate_way_entity")
public class GateWayEntity {
    @Id
    private Integer id;

    @Column(name = "route_id")
    private String routeId;

    /**
     * route名称
     */
    @Column(name = "route_name")
    private String routeName;

    /**
     * route规则，json字符串
     */
    @Column(name = "route_rule")
    private String routeRule;

    @Column(name = "route_type")
    private Integer routeType;

    /**
     * route描述
     */
    @Column(name = "route_desc")
    private String routeDesc;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return route_id
     */
    public String getRouteId() {
        return routeId;
    }

    /**
     * @param routeId
     */
    public void setRouteId(String routeId) {
        this.routeId = routeId == null ? null : routeId.trim();
    }

    /**
     * 获取route名称
     *
     * @return route_name - route名称
     */
    public String getRouteName() {
        return routeName;
    }

    /**
     * 设置route名称
     *
     * @param routeName
     *            route名称
     */
    public void setRouteName(String routeName) {
        this.routeName = routeName == null ? null : routeName.trim();
    }

    /**
     * 获取route规则，json字符串
     *
     * @return route_rule - route规则，json字符串
     */
    public String getRouteRule() {
        return routeRule;
    }

    /**
     * 设置route规则，json字符串
     *
     * @param routeRule
     *            route规则，json字符串
     */
    public void setRouteRule(String routeRule) {
        this.routeRule = routeRule == null ? null : routeRule.trim();
    }

    /**
     * @return route_type
     */
    public Integer getRouteType() {
        return routeType;
    }

    /**
     * @param routeType
     */
    public void setRouteType(Integer routeType) {
        this.routeType = routeType;
    }

    /**
     * 获取route描述
     *
     * @return route_desc - route描述
     */
    public String getRouteDesc() {
        return routeDesc;
    }

    /**
     * 设置route描述
     *
     * @param routeDesc
     *            route描述
     */
    public void setRouteDesc(String routeDesc) {
        this.routeDesc = routeDesc == null ? null : routeDesc.trim();
    }
}